package Day07;
/*
定义数组存储三个商品对象
属性有：id；名字，价格，库存
把对象存到数组当中去
 */
public class Food {

    public int id; //id

    public String name; //名字

    public int price; //价格

    public int remain; //库存

    public Food() {
    }

    public Food(int id, String name, int price, int remain) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.remain = remain;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getRemain() {
        return remain;
    }

    public void setRemain(int remain) {
        this.remain = remain;
    }
}
